USE[DeltaFlex]
GO
IF(OBJECT_ID('dbo.sp_CercarMaquinaByIDMaquina')IS NOT NULL)
	DROP PROCEDURE dbo.sp_CercaMaquinaByIDMaquina
GO

CREATE PROCEDURE dbo.sp_CercarMaquinaByIDMaquina
	@IDMAQUINA  INT
AS
BEGIN
	SET NOCOUNT ON
	SELECT * 
	  FROM dbo.MAQUINA_CARTONER
	 WHERE IDMAQUINACARTONER = @IDMAQUINA
END 
GO